﻿using System;

class PropertyChangeTest
{
    public static void Main()
    {
    Person person = new Person() { BirthDate = new DateTime(1989, 6, 15), FirstName = "Ivan",
    LastName = "Spasov", Gender = "Male" };
    person.PropertyChanged += Property_Changed;
    person.FirstName = "Pesho";
    }

    private static void Property_Changed(object sender, PropertyChangedEventArgs eventArgs)
    {
        Console.WriteLine("Property {0} changed from {1} to {2}",
                          eventArgs.PropertyName,
                          eventArgs.OldValue,
                          eventArgs.NewValue);
    }
}